package com.wenguo;

public interface Constants {

	public interface mybatis {
		public static final String GET_BY_ID = ".getById";
		public static final String GET_BY_ENTITY = ".getByEntity";
		public static final String GET_BY_MAP = ".getByMap";
		public static final String GET_BY_DEFINED = ".getByDefined";
		public static final String GET_COUNT = ".getCount";
		public static final String GET_ALL = ".getAll";
		public static final String INSERT = ".insert";
		public static final String UPDATE = ".update";
		public static final String UPDATE_PWD = ".updatePwd";
		public static final String DELETE = ".delete";
	}
	
	public interface statusCode {
		public static final String S_AUTHORIZEFAILED = "authorizeFailed";
		public static final String S_404 = "404";
		public static final String S_500 = "500";
	}
	
	public interface securityUrl {
		public static final String ADMIN = "/admin";
		public static final String ERROR = "/error";
		public static final String RESOURCES = "/resources";
		public static final String REGISTER = "register";
		public static final String IS_USER_EXIST = "isExist";
		public static final String LOGIN = "login";
		public static final String LOGOUT = "logout";
		public static final String INDEX = "/";
		public static final String AUTHORIZE_403 = ERROR + "/" + statusCode.S_AUTHORIZEFAILED;
		public static final String AUTHORIZE_404 = ERROR + "/" + statusCode.S_404;
		public static final String AUTHORIZE_500 = ERROR + "/" + statusCode.S_500;
	}
	
	public interface system {
		public static final String SECURITY_CODE = "securityCode";
		public static final String TEMP = "temp";
		public static final String TOKEN = "token";
		public static final String USER = "user";
		public static final String TIPS = "tips";
		public static final String TAG_LIST = "tag_list";
		public static final String TAG_BEAN = "tag_bean";
		public static final String PAGE_BEAN = "page_bean";
		public static final String URL_PAGE_SYMBOL = "p_";
		public static final String UID = "uid";
		public static final String ID = "id";
		public static final String PAGE_START = "start";
		public static final String PAGE_SIZE = "size";
		public static final Integer PAGE_SIZE2 = 11;
	}
	
	public interface status {
		public static final String NORMAL = "NORMAL";
		public static final String WARN = "WARN";
		public static final String FAILED = "FAILED";
		public static final String SUCCESS = "SUCCESS";
	}
	
	public interface group {
		public static final String ADMIN = "1";
		public static final String GUEST = "2";
	}

	public interface conf {
		public final String CONF_PATH = "/conf/jdbc.properties";
		public final String SQL_PATH = "/conf/sql.properties";
	}

	public interface sql {
		public static final String JDBC_DIRVER = "jdbc.driver";
		public static final String JDBC_URL = "jdbc.url";
		public static final String DB_TEST = "db.test";
		public static final String DB_TABLE_GROUP = "db.table.group";
		public static final String DB_TABLE_GROUP_INIT = "db.table.group.init";
		public static final String DB_TABLE_LOGINFO = "db.table.loginfo";
		public static final String DB_TABLE_USERINFO = "db.table.userinfo";
		public static final String DB_TABLE_USERINFO_INIT = "db.table.userinfo.init";
	}
}
